import request from '@/utils/request'

export function taskAdd(data) {
  return request({
    url: '/task/add',
    method: 'post',
    data
  })
}

export function taskList(data){
  return request({
    url: '/task/list',
    method: 'post',
    data
  })
}

export function taskInfo(data){
  return request({
    url: '/task/info',
    method: 'post',
    data
  })
}

export function handleTask(data){
  return request({
    url: '/handle_task',
    method: 'post',
    data
  })

}

export function updateTask(data){
  return request({
    url: '/task/update',
    method: 'post',
    data
  })
}

export function downloadExcel(data){
  return request({
    url:'/task/download',
    method:'post',
    responseType:'blob',
    data
  })
}

export function deleteTask(data){
  return request({
    url: '/task/delete',
    method: 'post',
    data
  })
}